#include "application.h"

namespace vortex
{
	Application::Application()
	{
		_window = std::make_shared<Window>(800, 600, "title");
		_simple_scene = std::make_shared<SimpleScene>();
	}

	Application::~Application()
	{
	}

	void Application::update(float delta_t)
	{
		_window->update(delta_t);
		_simple_scene->update(delta_t);
	}

	void Application::render()
	{
		_simple_scene->display();
	}

	bool Application::running()
	{
		return !_window->closed();
	}
}
